package com.heo.coder.packet;

import com.heo.coder.packet.base.BasePacket;

public class SocketPacket extends BasePacket{

	public SocketPacket(String commandId, String reserve, String subcontract, String rsa, int bodyLength, String imei,
			String sequenceId, String body, String check) throws Exception {
		super(commandId, reserve, subcontract, rsa, bodyLength, imei, sequenceId, body, check);
	}
	
	@Override
	public String getPacketBody() {
		return super.body;
	}
	
	@Override
	public String toString() {
		return "SocketPacket: [" + commandId + "] [" + START_MARKER_LENGTH_CODE + getCommandId() + getHead() + getImei() + getSequenceId() + getBody() + getCheck() + END_MARKER_LENGTH_CODE + "]";
	}

}
